package com.jxd.project.travel.controller;

import com.jxd.project.travel.service.IEmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName EmpController
 * @Description TODO
 * @Author 邢子剑
 * @Date 2025/10/8 下午3:17
 * @Version 1.0
 */
@RestController
public class EmpController {
    @Autowired
    private IEmpService empService;

    @RequestMapping("/getEnameByEmpno")
    public String getEnameByEmpno(int empno){
        return empService.getEnameByEmpno(empno);
    }

}
